
// XXXPLCDlg.h : header file
//

#pragma once
#include "afxwin.h"
#include "Counter.h"


// CXXXPLCDlg dialog
class CXXXPLCDlg : public CDialogEx
{
// Construction
public:
	CXXXPLCDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_XXXPLC_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()

	

	HWND FindErrorWindow();
	
private:
	bool m_isWorking;
	CCounter *m_counter;
	CWinThread *m_thread;

	void initValue();
public:
	
	CComboBox m_ctrlType;
	CComboBox m_ctrlWidth;
	CListBox m_listBox;
	CString m_name;
	DWORD	m_waitTime;

	afx_msg void OnBnClickedBtnStart();
	CString m_csType;
	CString m_csWidth;

	BOOL OnWork();
	afx_msg void OnBnClickedBtnClear();
	CString m_start;

	void prepare();
};
